/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mousemover;

import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 *
 * @author Vineet
 */
public class GUI{
    private JFrame frame;
    private JLabel label1;
    public GUI(){
        frame = new JFrame("MouseMover");
        label1 = new JLabel();
        frame.add(label1);
        frame.setSize(240, 60);
        frame.setResizable(false);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }

    public void setText(String text){
        label1.setText(text);
        try{
            Thread.sleep(4*1000);
        }catch(InterruptedException e){
            System.err.println("Cannot set text in GUI Label");
        }
    }
    
}
